<?php
include_once 'library/confirm/OrderDOFilterPost.class.php';

$item = new OrderDOFilterPost();

$tgl_pengiriman		=	$_POST['tgl_pengiriman'];
$po_id				=	$_POST['po_id'];
$no_do				=	$_POST['no_do'];
$pelanggan_id		=	$_POST['pelanggan_id'];
$tujuan				=	$_POST['tujuan'];
?>
<div class="title">Konfirmasi - Pengiriman</div>
<form name="frm_<?=$subbagian;?>" id="frm_<?=$subbagian;?>" method="post" action="index.php?bagian=<?=$bagian;?>&subbagian=<?=$subbagian;?>&action=confirmed">
 <ul>
		<li class="header"><span>Administrasi</span></li>
		<li><span>
            <label>Tanggal Pengiriman:</label>
            <span class="confirm"><?=$_POST['tgl_pengiriman'];?></span>
			<input type="hidden" name="tgl_pengiriman" value="<?=$tgl_pengiriman;?>" />
        </span></li>
		<li><span>
            <label>ID PO:</label>            
            <span class="confirm"><?=$_POST['po_id'];?></span>
			<input type="hidden" name="po_id" value="<?=$po_id;?>" />
        </span></li>
		<li><span>
            <label>Nomor DO:</label>
            <span class="confirm"><?=$_POST['no_do'];?></span>
			<input type="hidden" name="no_do" value="<?=$no_do;?>" />
        </span></li>
		<li><span>
            <label>ID Pelanggan:</label>
            <span class="confirm"><?=$_POST['pelanggan_id'];?></span>
			<input type="hidden" name="pelanggan_id" value="<?=$pelanggan_id;?>" />
        </span></li>		
		<li><span>
            <label>Tujuan:</label>
            <span class="confirm"><?=$_POST['tujuan'];?></span>
			<input type="hidden" name="tujuan" value="<?=$tujuan;?>" />
        </span></li>
	</ul>
	<ul>
		<li class="header"><span>Order</span></li>
		<li class="desc">
			<span class="jumlah_kotak">Jml Kotak</span>
			<span class="jumlah_kecambah">Jml Kecambah</span>
			<span class="keterangan">Keterangan</span>
		</li>
		<?php
		$no = 0;	
		foreach($item->order['jml_kotak'] as $i=>$v){
			$no++;
			$jml_kotak   	= $v;
			$jml_kecambah   = $item->order['jml_kecambah'][$i];
			$keterangan   	= $item->order['keterangan'][$i];
		?>
		<li>
			<span><label><?=$no;?></label>
			<span class="confirm_jumlah_kotak"><?=$jml_kotak;?></span>
			<span class="confirm_jumlah_kecambah"><?=$jml_kecambah;?></span>
			<span class="confirm_keterangan"><?=$keterangan;?></span>
			<input type="hidden" id="jml_kotak[]" name="jml_kotak[]" value="<?=$jml_kotak;?>"/>
			<input type="hidden" id="jml_kecambah[]" name="jml_kecambah[]" value="<?=$jml_kecambah;?>"/>
			<input type="hidden" id="keterangan[]" name="keterangan[]" value="<?=$keterangan;?>"/>
			</span>
		</li>
		<?php
		}		
		?>
	</ul>
	<ul>
		<li class="header"><span>Simpan</span></li>
		<li class="button"><span>
			<input type="submit" name="submit" id="submit" value="Simpan Data" class="simpan"/>
			<a class="cancel" href="#" onclick="javascript:history.go(-1);">Batalkan</a>
		</span></li>
	</ul>
</form>